Managed Folder Mailbox Policy - "A positional parameter cannot be found that accepts argument '-ManagedFolderMailboxPolicyAllowe d'"
Hello,
I'm using Shell to setup managed folder mailbox policy on a large number of mailboxes.
When i specify something on the lines of below for a single user i get an error:
Set-mailbox user@domain.com -managedFolderMailboxPolicy "My policy" -ManagedFolderMailboxPolicyAllowed
A positional parameter cannot be found that accepts argument '-ManagedFolderMailboxPolicyAllowed' .
+ CategoryInfo : InvalidArgument: (:) [Set-Mailbox], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Set-Mailbox
Specifying the above switch as -ManagedFolderMailboxPolicyAllowed:$True
does not help either.
I'm sure there is somethign very basic i may be missing, any help is greatly appreciated.
Thanks!
September 3rd, 2012 10:40pm
Make sure you are adding the user name correctly. Or use Set-Mailbox -Identity.
Free Windows Admin Tool Kit Click here and download it now
September 4th, 2012 7:17am
Thank you for your reply.
I have verified user name and have tried Set-Mailbox -identity as well. If i remove "-ManagedFolderMailboxPolicyAllowed" switch, it works however of course throws the confirmation dialog which i wanna avoid. That however proves that the username or identity
parameter i'm passing is accurate.
Thanks
September 4th, 2012 9:43am
Set-mailbox user@domain.com -managedFolderMailboxPolicy "My policy" -ManagedFolderMailboxPolicyAllowed
Hi Shaak1.
Which version of Exchange do you use? Exchange 2007 or Exchange 2010?
I can run the above cmdlet in Exchange 2007 & Exchange 2010 and it works.
Please also run the cmdlet on another Exchange server to test.
Frank Wang
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
September 5th, 2012 2:37am
Set-mailbox user@domain.com -managedFolderMailboxPolicy "My policy" -ManagedFolderMailboxPolicyAllowed
Hi Shaak1.
Which version of Exchange do you use? Exchange 2007 or Exchange 2010?
I can run the above cmdlet in Exchange 2007 & Exchange 2010 and it works.Frank Wang
TechNet Community Support
September 5th, 2012 2:37am
Hi Shaak1,
Any updates?Frank Wang
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
September 10th, 2012 12:05am